CLASS lsc_zi_rap_nwf_996 DEFINITION INHERITING FROM cl_abap_behavior_saver.

  PROTECTED SECTION.

    METHODS save REDEFINITION.

    METHODS finalize REDEFINITION.

    METHODS check_before_save REDEFINITION.

    METHODS cleanup REDEFINITION.

    METHODS cleanup_finalize REDEFINITION.

ENDCLASS.

CLASS lsc_zi_rap_nwf_996 IMPLEMENTATION.

  METHOD save.
    DATA:lt_tab TYPE TABLE OF zrap_nwf_996t.
    lt_tab = VALUE #( ( ebeln = '2' matnr = 'C' ) )   .
*    MODIFY zrap_nwf_996t FROM TABLE @lt_tab.

    MODIFY zrap_nwf_996t FROM TABLE @lt_tab.

  ENDMETHOD.

  METHOD finalize.
  ENDMETHOD.

  METHOD check_before_save.
  ENDMETHOD.

  METHOD cleanup.
  ENDMETHOD.

  METHOD cleanup_finalize.
  ENDMETHOD.

ENDCLASS.



CLASS lhc_zi_rap_nwf_996 DEFINITION INHERITING FROM cl_abap_behavior_handler.
  PRIVATE SECTION.

    METHODS get_instance_authorizations FOR INSTANCE AUTHORIZATION
      IMPORTING keys REQUEST requested_authorizations FOR zi_rap_nwf_996 RESULT result.

    METHODS copy_instance FOR MODIFY
      IMPORTING keys FOR ACTION zi_rap_nwf_996~copy_instance.
    METHODS create FOR MODIFY
      IMPORTING entities FOR CREATE zi_rap_nwf_996.

    METHODS update FOR MODIFY
      IMPORTING entities FOR UPDATE zi_rap_nwf_996.

    METHODS delete FOR MODIFY
      IMPORTING keys FOR DELETE zi_rap_nwf_996.

    METHODS read FOR READ
      IMPORTING keys FOR READ zi_rap_nwf_996 RESULT result.

    METHODS lock FOR LOCK
      IMPORTING keys FOR LOCK zi_rap_nwf_996.

ENDCLASS.

CLASS lhc_zi_rap_nwf_996 IMPLEMENTATION.

  METHOD get_instance_authorizations.
  ENDMETHOD.

  METHOD copy_instance.
*    MODIFY ENTITIES OF zi_rap_nwf_996 IN LOCAL MODE
*        ENTITY zi_rap_nwf_996
*          CREATE FROM VALUE #( FOR <instance> IN keys
*                                 ( %cid      = <instance>-%cid
*                                   ebeln = '1'
*                                   matnr = 'A'
*                                   %control  =
*                                   VALUE #(
*                                     ebeln = if_abap_behv=>mk-on
*                                     matnr = if_abap_behv=>mk-on
*
*                                     )
*                                   )
*                                )
*          MAPPED mapped
*          FAILED failed
*          REPORTED reported.

    DATA:lt_tab TYPE TABLE OF zrap_nwf_996t.
    lt_tab = VALUE #( ( ebeln = '2' matnr = 'B' ) )   .
*    MODIFY zrap_nwf_996t FROM TABLE @lt_tab.


  ENDMETHOD.

  METHOD create.

    DATA:lt_tab TYPE TABLE OF zrap_nwf_996t.
    lt_tab = VALUE #( ( ebeln = '2' matnr = 'B' ) )   .
*    MODIFY zrap_nwf_996t FROM TABLE @lt_tab.

*    insert zrap_nwf_996t from TABLE @lt_tab.

  ENDMETHOD.

  METHOD update.
  ENDMETHOD.

  METHOD delete.
  ENDMETHOD.

  METHOD read.
  ENDMETHOD.

  METHOD lock.
  ENDMETHOD.

ENDCLASS.
